<template>
  <div class="login">
    <div class="box">
      <h1>前端92期后台管理系统</h1>
      <div class="form">
        <div>用户名:</div>
        <input type="text" />
      </div>
      <div class="form">
        <div>密码:</div>
        <input type="text" />
      </div>
      <router-link to="/layout">登录</router-link>
    </div>
  </div>
</template>
<script>
export default {
  name: '',
  data () {
    return {

    }
  },
  created () {
  },
  computed: {
  },
  methods: {
  }
}
</script>
<style lang='less'  scoped>
.login {
  width: 100vw;
  height: 100vh;
  background-color: skyblue;
  position: relative;
  .box {
    box-sizing: border-box;
    padding: 30px;
    width: 30%;
    height: 50%;
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    h1 {
      text-align: center;
      margin: 20px 0;
    }
    div.form {
      width: 70%;
      margin: 40px auto 20px;
      display: flex;
      align-items: center;
      div {
        width: 60px;
      }
      input {
        width: 300px;
        height: 40px;
        border:1px  solid  #333;
      }
    }
    a {
      display: block;
      width: 150px;
      height: 50px;
      background-color: green;
      text-align: center;
      line-height: 50px;
      margin: 0 auto;
    }
  }
}
</style>